projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1b07bc
)
gtkcssimagebuiltin: Save/restore around cairo_clip
author
Timm Bäder
<mail@baedert.org>
Tue, 19 Apr 2016 13:20:14 +0000
(15:20 +0200)
committer
Timm Bäder
<mail@baedert.org>
Tue, 19 Apr 2016 13:31:26 +0000
(15:31 +0200)
This was previously causing trouble in checkbuttons where the check node
didn't have an icon shadow set, e.g. in Raleigh.
gtk/gtkcssimagebuiltin.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssimagebuiltin.c
b/gtk/gtkcssimagebuiltin.c
index 012abbae23c5d5015a44c920ef019aa77b658266..07d2fec6335e015143befd769470b511f74957d2 100644
(file)
--- a/
gtk/gtkcssimagebuiltin.c
+++ b/
gtk/gtkcssimagebuiltin.c
@@
-95,6
+95,7
@@
gtk_css_image_builtin_draw_check (GtkCssImage *image,
{
if (checked)
{
+ cairo_save (cr);
cairo_translate (cr,
x + pad, y + pad);
@@
-123,6
+124,7
@@
gtk_css_image_builtin_draw_check (GtkCssImage *image,
7.0, 0.0);
cairo_fill (cr);
+ cairo_restore (cr);
}
}
}